//
//  TimeLabel.m
//  StationManager
//
//  Created by 泽华伟业 on 17/3/15.
//  Copyright © 2017年 Helong. All rights reserved.
//

#import "TimeLabel.h"

@interface TimeLabel ()



@end

@implementation TimeLabel

- (instancetype)init
{
    self = [super init];
    if (self) {
        _lineView = [[UIView alloc]init];
        [self addSubview:_lineView];
        [_lineView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.centerY.equalTo(self);
            make.left.right.equalTo(self);
            make.height.mas_equalTo(4*hl);
        }];
        _lineView.backgroundColor = RGBACOLOR(187, 200, 204, 0.5);
        UIView *shuLineView = [[UIView alloc]init];
        [self addSubview:shuLineView];
        [shuLineView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.equalTo(self.mas_right);
            make.top.bottom.equalTo(self);
            make.width.mas_equalTo(1);
        }];
        shuLineView.backgroundColor = [UIColor blackColor];
        [self setTextAlignment:NSTextAlignmentCenter];
        [self setFont:TEXT_FONT];
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
